package hcn.api.service.api.user;

import javax.xml.bind.annotation.*;
import java.util.List;

/**
 * Project: hcn-transformer
 * Author: xinggj  sixtynine@live.cn
 * Date: 2016/7/20 15:39
 * Description:
 */
@XmlRootElement(name = "Response")
public class ResponseXmlBean<T> {
    private String ErrorMsg;
    private String ResultCode;
    private List<T> result;

    @XmlElement(name = "ErrorMsg")
    public String getErrorMsg() {
        return ErrorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.ErrorMsg = errorMsg;
    }

    @XmlElement(name = "ResultCode")
    public String getResultCode() {
        return ResultCode;
    }

    public void setResultCode(String ResultCode) {
        this.ResultCode = ResultCode;
    }

    @XmlElementWrapper(name = "Result")
    @XmlAnyElement(lax = true)
    public List<T> getResult() {
        return result;
    }

    public void setResult(List<T> result) {
        this.result = result;
    }
}
